package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.model.CerDetaildataImportInfo;
import com.zjcode.cdcer.pojo.CerSysteminitImportInfo;

import javax.servlet.http.HttpServletResponse;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public interface CerDetaildataImportInfoService {

    Map<String, Object> listAllTableData(PageData pageData);

    List<LinkedHashMap<String, Object>> queryAllExportData(PageData pageData);

    JsonObj batchDeletion(PageData pageData);

    JsonObj oneClickDelete(PageData pageData);

    List<CerDetaildataImportInfo> getAllNoErrorData(PageData pageData);

    void updateCerDetaildataImportOfficeInfoStatus(PageData pageData);

    int deleteById(String id);

    CerDetaildataImportInfo findDataById(String id);

    int batchInsert(List<CerSysteminitImportInfo> list);

    int updateRecord(CerDetaildataImportInfo detaildataImportInfo);

    List<CerDetaildataImportInfo> findAllByDateTimeRange(String start, String end);

    List<CerDetaildataImportInfo> selectByNjNum(String code,String extFlag);

    List<CerDetaildataImportInfo> selectByBlNum(String code,String extFlag);

    List<CerDetaildataImportInfo> selectByNameAndNjzlTime(String name,
                                                          String njzlTime,
                                                          String extFlag);

    List<CerDetaildataImportInfo> selectByNameAndBlbgTime(String name,
                                                          String blbgTime,
                                                          String extFlag);

    void exportDetailForGJMode(PageData pageData, HttpServletResponse response);
}
